# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=pwd-hash
pkgver=2.0
pkgrel=2
groups=('blackarch' 'blackarch-crypto')
pkgdesc='A password hashing tool that use the crypt function to generate the hash of a string given on standard input.'
arch=('x86_64' 'aarch64')
url='http://vladz.devzero.fr/pwd-hash.php'
license=('GPL3')
#source=("http://vladz.devzero.fr/svn/projects/$pkgname/releases/$pkgname-$pkgver.tgz")
source=("https://web.archive.org/web/20130720013259/http://vladz.devzero.fr/svn/projects/pwd-hash/releases/$pkgname-$pkgver.tgz")
sha512sums=('8adf66e1640a4881c00bea65cad7d8560d581033caf34ffeeba8c0ad69abac6c9cd69ebf5bf7039096cc67d26be0405822fb2727afc6c69ac8b00718afe3476a')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README CHANGELOG
}

